package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.List;

public class CustomerStub implements Customer {
    private String name;
    private List<Book> books = new ArrayList<Book>();

    public static CustomerStub build() {
        return new CustomerStub();
    }

    public CustomerStub withName(String name) {
        this.name = name;
        return this;
    }

    public List<Book> getCheckedOutBooks() {
        return books;
    }

    public void addBook(Book book) {
        this.books.add(book);
    }
}
